package com.itic.mall.timer.jdorder;


import java.util.Date;

import com.itic.appbase.framework.utils.DateHelper;
import com.itic.mall.mobile.base.BaseMobileInterface;

public class JdOrderTimer extends BaseMobileInterface {
    

    //同步京东预计收益
    public void execute() {
    	//orderJdService.syncJdOrder();
    	//同步当前时间的订单
  		//String dateStringByDate = DateHelper.getDateStringByDate(new Date(), "yyyyMMdd");
  		//subSyncJdOrder(dateStringByDate);
  		//String dateStringByDate = "20171208";
    	//orderJdService.subSyncJdOrder(dateStringByDate);69864229713
		String dateStringByDate = DateHelper.getDateStringByDate(new Date(), "yyyyMMdd");

    	//String dateStringByDate = "20180313";
  		int hour=24;
  		for( int i=hour;i>=0;i-- ){
  			orderJdService.subSyncJdOrder(dateStringByDate+i+"");
  		}
    	
    	//orderJdService.subSyncJdOrder("2017122716");
    }

}